package com.fh.modules.pms.model.mobile;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description:
 * @author： qiujunda
 * @date： 2019/11/5 23:42
 */
@Data
public class CarProductModel implements Serializable {
    private static final long serialVersionUID = 8093145529101047811L;
    /**主键*/
    private Integer id;
    /**商品名称*/
    private String name;
    /**首图*/
    private String headPic;
    /**货号*/
    private String productSn;
    /**单价*/
    private BigDecimal price;
    /**会员vip价格*/
    private BigDecimal vipPrice;
    /**赠送的积分*/
    private Integer giftPoint;
    /**副标题*/
    private String subTitle;
    /**单位*/
    private String unit;
    /**商品重量，默认为克*/
    private BigDecimal weight;
    /**最少购买数量*/
    private Integer miniBuyNum;
    /**购买增加份数步长*/
    private Integer buyStepNum;

    private Integer carId;
    /**数量*/
    private Integer quantity;

    private BigDecimal addPrice;

    private String propertyList;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
